﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue queue1 = new Queue();
            queue1.Enqueue("一");
            queue1.Enqueue("二");
            queue1.Enqueue("两");
            Console.WriteLine("三");
            while (queue1.Count != 0)
            {
                Console.WriteLine(queue1.Dequeue());
            }
            Queue queue = new Queue();
            queue.Enqueue("四");
            queue.Enqueue("五");
            queue.Enqueue("六");
            object[] obj = queue.ToArray();
            foreach (var v in obj)
            {
                Console.WriteLine(v);
            }

            Queue queue2 = new Queue();
            queue2.Enqueue(710);
            queue2.Enqueue("今天不是今天");
            queue2.Enqueue("明天不是今天");
            queue2.Enqueue("今天不是周一");

            IEnumerator enumerator = queue2.GetEnumerator();

            while (enumerator.MoveNext())
            {
                Console.WriteLine(enumerator.Current);
            }


        }
    }
}
